package de.fhb.gds.cp.io;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class CpSave {
	
	public static void saveImage(BufferedImage im, String pathWithFilename, String imageformat) throws IOException {
		File outputImage = new File(pathWithFilename);
		ImageIO.write(im, imageformat, outputImage);
	}
	
}
